package com.charmzenus.champion.ui.fragment.main;

import android.os.Handler;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;

import com.charmzenus.champion.R;
import com.charmzenus.champion.base.BaseFragment;
import com.charmzenus.champion.utils.ToastUtil;

/**
 * 主页，开单
 */
public class MainOpenBill extends BaseFragment {

    @Override
    public View createSuccessView() {
        return LayoutInflater.from(getContext()).inflate(R.layout.fragment_main_bill, null, false);
    }

    @Override
    protected void load() {

        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                showPageSuccess();
            }
        }, 3000);
    }

    @Override
    protected void initView() {
        Button test = mView.findViewById(R.id.TestBtn);
        test.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ToastUtil.showToast("hello");
            }
        });
    }
}
